package com.wangwenjun.concurrency.chapter6;

/**
 * @author
 * @Title: TestThreadService
 * @Description:
 * @date 2022/5/21 8:06 下午
 */
public class TestThreadService {

    public static void main(String[] args) {
        ThreadService ts = new ThreadService();
        ts.execute(() -> {
                    while (true) {

                    }
                }
        );
        long now = System.currentTimeMillis();
        System.out.println("共花费:"+ (System.currentTimeMillis()-now));
    }
}
